using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;

namespace Commons.Injector.Dtos
{
	public class SubscriptionDto
	{
		[XmlAttribute(AttributeName = "handler", Type = typeof(string))]
		public string Handler { get; set; }

		[XmlAttribute(AttributeName = "args", Type = typeof(string))]
		public string Args { get; set; }

		[XmlElement(ElementName = "publisher")]
		public List<PublisherDto> Publishers;

		public SubscriptionDto()
		{
			Args = "System.EventArgs";
		}
	}
}

